package manufacturerbeans;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class Product implements Serializable{

    private BatchTable batchTable;
    private String name;
    private String description;
    private String madeIn;
    //todo: image

    public Product() {
        batchTable = new BatchTable();
    }

    public Product(String name) {
        this.name = name;
        batchTable = new BatchTable();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getMadeIn() {
        return madeIn;
    }

    public void setMadeIn(String madeIn) {
        this.madeIn = madeIn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BatchTable getBatchTable() {
        return batchTable;
    }

    public void setBatchTable(BatchTable batchTable) {
        this.batchTable = batchTable;
    }
}
